#!/bin/bash

echo ---------------------------------- START -------------------------------------
set -x
eval $@
set +x
echo ---------------------------------- END ----------------------------------------

printf '\e[?9h'
read -n 1
exit


#rest 
while true ; do
	printf '\e[?9h'
	i=1
	read -n 1 i
#	sleep 1
set -x
	echo 
	printf "$i"
	echo $i | hexdump -C 
#break
	test -z $1 && break 
	echo tutaj
 	test $( echo $i | hexdump -e '1/1 "%02x"') != "1b0a" && break

	read -n 5 n 
echo $n
 	test ${n:0:3} = '[M!' -o ${n:0:3} = '[M"' && break

#	test $n != "[M" && break
#	read -n 3 echo $m
#	test $m != "M" && break 
#	test -n $i && break || test $( = " " && break # -a ${i:0:1} != " " && break
#	.[M"
done



